package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.sys.entity.SysBillCountEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 系统单号计数表 保存对象
 *
 * @author Gzhao 2021-03-04
 */
@Data
@ApiModel("系统单号计数表-保存对象")
public class SysBillCountSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "单据类型：1-发货单")
    private Integer billType;

    @ApiModelProperty(value = "单据前缀")
    private String prefixion;

    @ApiModelProperty(value = "单据类型：1-发货单")
    private Integer count;

    public SysBillCountEntity convertEntity() {
        SysBillCountEntity target = new SysBillCountEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
